package com.luoye.lj.util.mvc.data;

import java.util.List;

public class SimpleListResult {

	private int results;
	private int currentPage;
	private int pages;
	private List rows;
	private int offset=-1;
	private int max=-1;


	public void setPages(int pages) {this.pages = pages;}
	public int getCurrentPage() {return currentPage;}

	public void setCurrentPage(int currentPage) {this.currentPage = currentPage;}

	public int getPages() {return pages;}
	public int getResults() {return results;}
	public void setResults(int results) {this.results = results;}
	public List getRows() {
		return rows;
	}
	public void setRows(List rows) {
		this.rows = rows;
	}

	public int getOffset() {
		return offset;
	}

	public void setOffset(int offset) {
		this.offset = offset;
	}

	public int getMax() {
		return max;
	}

	public void setMax(int max) {
		this.max = max;
	}

	@Override
	public String toString() {
		return "SimpleListResult{" +
				"results=" + results +
				", currentPage=" + currentPage +
				", pages=" + pages +
				", rows=" + rows +
				", offset=" + offset +
				", max=" + max +
				'}';
	}
}
